package com.cizzy.video.entity.dto;

import com.baomidou.mybatisplus.annotation.TableId;
import com.cizzy.video.entity.dao.UserDAO;
import com.cizzy.video.entity.dao.UserCountDAO;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.*;

/**
 * <p>
 * 
 * </p>
 *
 * @author crissy-月下闲人
 * @since 2023-10-29
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
//@ApiModel(value = "User对象", description = "")
public class UserDTO{

    private Long userId;

    private String signature;

    private String avatar;

    private String nickname;

    public void convertFromUserDAO(UserDAO userDAO) {
        this.userId = userDAO.getUserId();
        this.signature = userDAO.getSignature();
    }
}
